package com.toulouseculture;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class ToulouseCultureActivity extends Activity {
	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.main);

		Button cinemaButton = (Button) findViewById(R.id.cinemaButton);
		cinemaButton.setOnClickListener(new View.OnClickListener() {

			@Override
			public void onClick(View v) {
				Intent i = new Intent(ToulouseCultureActivity.this, CinemaListActivity.class);
				ToulouseCultureActivity.this.startActivity(i);
			}
		});

		Button museumButton = (Button) findViewById(R.id.museumButton);
		museumButton.setOnClickListener(new View.OnClickListener() {

			@Override
			public void onClick(View v) {
				Intent i = new Intent(ToulouseCultureActivity.this, MuseumListActivity.class);
				ToulouseCultureActivity.this.startActivity(i);
			}
		});

		Button theaterButton = (Button) findViewById(R.id.theaterButton);
		theaterButton.setOnClickListener(new View.OnClickListener() {

			@Override
			public void onClick(View v) {
				Intent i = new Intent(ToulouseCultureActivity.this, TheaterListActivity.class);
				ToulouseCultureActivity.this.startActivity(i);
			}
		});

		Button libraryButton = (Button) findViewById(R.id.libraryButton);
		libraryButton.setOnClickListener(new View.OnClickListener() {

			@Override
			public void onClick(View v) {
				Intent i = new Intent(ToulouseCultureActivity.this, LibraryListActivity.class);
				ToulouseCultureActivity.this.startActivity(i);
			}
		});
	}
}